package com.b511.swpu.cementbackend.repository;

import com.b511.swpu.cementbackend.entity.Sys_Role_Navigation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface Sys_Role_NavigationRepository extends JpaRepository<Sys_Role_Navigation, String> {
    @Query(value = "select sys_navigation_id from sys_role_navigation WHERE sys_role_id =:roleID",nativeQuery = true)
    List<String> findByRoleID(@Param("roleID") String roleID);
}
